From: Frédéric Pierret (fepitre) Date: Sat, 28 Nov 2020 22:00:31 +0000 (+0100) Subject: [PATCH] data: workaround for hardcoded absolute path data in variables X-Git-Tag: archive/raspbian/0.75.0-1+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e258a4c3fafada6973624b275bcf63c70e5f9602;p=libdnf.git [PATCH] data: workaround for hardcoded absolute path data in variables We use clean env for each build to use /tmp as location. This is a temporary solution until upstream/we found a better way for that. Gbp-Pq: Name 0012-data-workaround-for-hardcoded-absolute-path-data-in-.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index aab0d7e..4eb7f3b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -139,7 +139,7 @@ add_definitions(-DGETTEXT_DOMAIN="libdnf") add_definitions(-DG_LOG_DOMAIN="libdnf") # tests -add_definitions(-DTESTDATADIR="${CMAKE_SOURCE_DIR}/data/tests") +add_definitions(-DTESTDATADIR="/tmp/data/tests") # Use libdnf5 drop-in configuration directories including distribution configuration. if(ENABLE_DNF5_CONF_DROP_IN) @@ -203,3 +203,4 @@ endif() add_subdirectory(etc) +file(COPY data DESTINATION /tmp)